import request from '@/utils/request'
// import axios from 'axios'
import { apiVersion } from '@/config'


// 获取详情
export function getModelEvaluationTypeDetail(data) {
    return request({
        url: `/admin/${apiVersion}/modelEvaluationType/${data.id}`,
        method: 'get',
        data
    })
}
// 分页列表
export function getModelEvaluationTypes(data) {
    return request({
        url: `/admin/${apiVersion}/modelEvaluationType`,
        method: 'get',
        data
    })
}
// 删除
export function delModelEvaluationType(data) {
    return request({
        url: `/admin/${apiVersion}/modelEvaluationType/${data.id}`,
        method: 'delete',
        data
    })
}
// 创建
export function addModelEvaluationType(data) {
    return request({
        url: `/admin/${apiVersion}/modelEvaluationType`,
        method: 'post',
        data
    })
}
// 修改
export function putModelEvaluationType(data) {
    return request({
        url: `/admin/${apiVersion}/modelEvaluationType`,
        method: 'put',
        data
    })
}
// 查询列表
export function getAllModelEvaluationTypes(data) {
    return request({
        url: `/admin/${apiVersion}/modelEvaluationType/all`,
        method: 'get',
        data
    })
}
